<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="catalog" tagdir="/WEB-INF/tags/catalog"%>
<%@ taglib prefix="content" tagdir="/WEB-INF/tags/content"%>
<html>
	<title>${category.categoryName}</title>
	<meta name="keywords"
		content="${(not empty category.keywords)?category.keywords:category.categoryName}" />
	<meta name="description"
		content="${(not empty category.metaDescription)?category.metaDescription:category.categoryDescription}" />
	<body>
	<div class="position"><fmt:message key="position.your"/>
		<catalog:contentCategoryNavigation categoryId="${category.categoryId}"/>
	</div>
	<c:choose>
		<c:when test="${not empty contentSearchCriteria.keywords and sc.totalCount == 0}">	
			<div class="msg">
				<h3><fmt:message key="contentList.noSearchResult.msg.title"/></h3>
				<div class="recommend_info">
					<dl>
						<dt><fmt:message key="contentList.noSearchResult.msg.advice"/>：</dt>
						<dd><fmt:message key="contentList.noSearchResult.msg.advice1"/></dd>
						<dd><fmt:message key="contentList.noSearchResult.msg.advice2"/></dd>
					</dl>
				</div>
			</div>	
		</c:when>
		<c:otherwise>
			<form method="get">
				<div class="news_list">
					<div class="title"><h3>${category.categoryName}</h3></div>
					<c:if test="${category.categoryType == 2}">
			 			<p><div class="desc">${category.categoryContext}</div>
			 		</c:if>
			 		<c:forEach items="${contentList}" var="content" varStatus="contentStatus">
		 				<%@ include file="include/contentItem.jspf"%>
			 		</c:forEach>
			 	</div>
			</form>
		</c:otherwise>
	</c:choose>		
		
	<c:set var="plugin_highlight" value="true" scope="request"/>
	<script type="text/javascript"	src="${ctxPath}/scripts/probiz/content/contentList.js?rs=${appConfig.rs}"></script>	
	<script type="text/javascript">
	$j(document).ready(function () {
		<c:if test="${sc.totalCount != 0}">	
			//stat:高亮搜索结果
			if("${contentSearchCriteria.keywords}".trim() != ""){
				 var searchValues = "${contentSearchCriteria.keywords}".trim().replace(/\s+/,"|").split("|");
				 highlight($('contentList'),searchValues); 
			} 
			//end:高亮搜索结果 
		</c:if>	
	});	
	</script>	
	</body>
</html>
